projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8804991
)
Make a test with a custom display
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Dec 2019 14:49:10 +0000
(09:49 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Dec 2019 15:03:42 +0000
(10:03 -0500)
This completely breaks the inspector.
tests/simple.c
patch
|
blob
|
history
diff --git
a/tests/simple.c
b/tests/simple.c
index 63ae18f2f6c357e012be27d109ad153057679501..3369eebcf8b243b0045545c2c807dd877bdc35a0 100644
(file)
--- a/
tests/simple.c
+++ b/
tests/simple.c
@@
-33,6
+33,13
@@
main (int argc, char *argv[])
gtk_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
+ if (g_getenv ("CUSTOM_DISPLAY"))
+ {
+ GdkDisplay *display = gdk_display_open (NULL);
+ gtk_window_set_display (GTK_WINDOW (window), display);
+ }
+
gtk_window_set_title (GTK_WINDOW (window), "hello world");
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);